﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Huirui.Cavan.Core.MyLinq;
using Huirui.Cavan.Core.Persistent;
using Huirui.Cavan.Domain.MainBoundedContext.SearchModule;
using Huirui.Cavan.Core.Extension;

namespace Huirui.Cavan.Domain.MainBoundedContext.StockModule
{
    public class StockUnitSpecification : ISpecification<StockUnit, StockUnitSearch>
    {
        #region ISpecification<StockUnit,StockUnitSearch> 成员

        public StockUnitSearch SearchParams
        {
            get;
            set;
        }

        #endregion

        #region ISpecification<StockUnit> 成员

        public System.Linq.Expressions.Expression<Func<StockUnit, bool>> Expression
        {
            get
            {
                IQueryBuilder<StockUnit> queryBuilder = QueryBuilder.Create<StockUnit>();

                if (SearchParams.IsNotNull())
                {

                }

                return queryBuilder.Expression.Expand();
            }
        }

        #endregion
    }
}
